package cn.buk.tms.dto;

import java.util.ArrayList;
import java.util.List;

public class FlightRefundOrderDto {

    private String ticketNo;
    private String name;
    private String idNo;

    private List<FlightRefundTicket> refundTickets;

    private int orderId;
    private String orderNo;

    private float amount;
    private float cost;
    private float parvalue;
    private float tax;
    private float airRefundFee;
    private float serviceCharge;

    private int reasonCode;
    private String reasonDesc;
    private String remark;

    private int intlTicket;

    private int customerId;
    private int supplierId;
    private int paymentId;


    private List<FlightRefundOrderDetailDto> flights;

    public String getTicketNo() {
        return ticketNo;
    }

    public void setTicketNo(String ticketNo) {
        this.ticketNo = ticketNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public float getAmount() {
        return amount;
    }

    public void setAmount(float amount) {
        this.amount = amount;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public float getAirRefundFee() {
        return airRefundFee;
    }

    public void setAirRefundFee(float airRefundFee) {
        this.airRefundFee = airRefundFee;
    }

    public float getServiceCharge() {
        return serviceCharge;
    }

    public void setServiceCharge(float serviceCharge) {
        this.serviceCharge = serviceCharge;
    }

    public int getReasonCode() {
        return reasonCode;
    }

    public void setReasonCode(int reasonCode) {
        this.reasonCode = reasonCode;
    }

    public String getReasonDesc() {
        return reasonDesc;
    }

    public void setReasonDesc(String reasonDesc) {
        this.reasonDesc = reasonDesc;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public List<FlightRefundOrderDetailDto> getFlights() {
        return flights;
    }

    public void setFlights(List<FlightRefundOrderDetailDto> flights) {
        this.flights = flights;
    }

    public String getOrderNo() {
        return orderNo == null ? "" : orderNo.trim();
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public int getIntlTicket() {
        return intlTicket;
    }

    public void setIntlTicket(int intlTicket) {
        this.intlTicket = intlTicket;
    }

    public float getParvalue() {
        return parvalue;
    }

    public void setParvalue(float parvalue) {
        this.parvalue = parvalue;
    }

    public float getTax() {
        return tax;
    }

    public void setTax(float tax) {
        this.tax = tax;
    }

    public float getCost() {
        return cost;
    }

    public void setCost(float cost) {
        this.cost = cost;
    }

    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public int getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(int supplierId) {
        this.supplierId = supplierId;
    }

    public int getPaymentId() {
        return paymentId;
    }

    public void setPaymentId(int paymentId) {
        this.paymentId = paymentId;
    }

    public List<FlightRefundTicket> getRefundTickets() {
        if (refundTickets == null) {
          refundTickets = new ArrayList<>();
        }
        return refundTickets;
    }

    public void setRefundTickets(List<FlightRefundTicket> refundTickets) {
        this.refundTickets = refundTickets;
    }
}
